package com.quyeying.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.quyeying.entity.TblProductEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 书本商品表，存放售卖信息数据 Mapper 接口
 * </p>
 *
 * @author jll
 * @since 2022-07-19
 */
public interface TblProductDao extends BaseMapper<TblProductEntity> {

    List<Map<String, Object>> findKeywordList(@Param("search") String search);

    TblProductEntity getProductInfo(Long pid);

    void updateProductBrowse(TblProductEntity tblProductEntity);

    IPage<Map<String,Object>> findListPageSearch(Page<Object> objectPage, String search);

    IPage<Map<String,Object>> findListPageRecommend(Page<Object> objectPage);
}
